package com.itheima.demo07;

import java.util.concurrent.ArrayBlockingQueue;

public class QueueThead {
    public static void main(String[] args) {
        //阻塞队列

        ArrayBlockingQueue<String> queue = new ArrayBlockingQueue<>(1);

        Cook cook = new Cook(queue);

        Foodie foodie = new Foodie(queue);

        cook.start();
        foodie.start();
    }
}
